package com.itheima.array;

import java.util.Scanner;

/*
    输出只出现一次的次数重制版
 */
public class WorkArray021 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[10];//建立数组,长度为10;
        //循环遍历录入数组组值
        for (int i = 0; i < arr.length; i++) {
            arr[i] = sc.nextInt();
        }
        isSame(arr);
    }
    public static int count(int[] arr,int num) {
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if(num == arr[i]){
                count++;
            }
        }
        return count;
    }
    public static void isSame(int[] arr){
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if(count(arr,arr[i])==1) {
                System.out.println(arr[i]);
                count++;
            }
        }
        System.out.println(count+"个");
    }
}
